﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using Genesi.Common.Poco;
namespace Genesi.DAL
{
    public class Context : DbContext
    {
        public DbSet<Articolo> Articoli { get; set; }
        public DbSet<DettaglioModello> DettagliModello { get; set; }
        public DbSet<DettaglioOrdine> DettagliOrdine { get; set; }
        public DbSet<Fornitore> Fornitori { get; set; }
        public DbSet<Ordine> Ordini { get; set; }
        public DbSet<TestataModelli> TestateModelli { get; set; }
        public DbSet<UnitaMisura> UnitaMisura { get; set; }
        public DbSet<Utente> Utenti { get; set; }

        public Context()
        {

        }
        public Context(string nameOrConnectionString)
            : base(nameOrConnectionString)
        {
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);

        
        }
    }
}
